package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;

/**
 * @author feng js
 */
public interface AdSensitiveService extends IService<AdSensitive> {

    ResponseResult findBypageAndName(SensitiveDto sensitiveDto);

    /**
     * 敏感词新增
     * @param adSensitive
     * @return
     */
    ResponseResult insert(AdSensitive adSensitive);

    /**
     * 敏感词修改
     * @param adSensitive
     * @return
     */
    ResponseResult update(AdSensitive adSensitive);

    /**
     * 敏感词删除
     * @param id
     * @return
     */
    ResponseResult deleteById (Integer id);
}
